package com.yuyou.train.user.service;

import com.yuyou.train.service.api.user.entity.UserPraise;
import com.yuyou.train.user.vo.resp.RespUserRaiseTop;

import java.util.List;


public interface IUserPraiseService {
    int deleteByPrimaryKey(String id);
    
    int insert(UserPraise record);

    UserPraise selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserPraise record);

    List<UserPraise> findUserPraiseByForeignId(String foreignId);

    UserPraise findPraiseByForeignIdAndUserId(String foreignId, String userId);

    int deleteByfForeignIdUserId(String foreignId, String userId);
    
    Long sumByForeignId(String foreignId,String isPraise);
    
    List<RespUserRaiseTop> findHwPraiseTop(String classId, String isPraise);
    
    UserPraise selectUserPraise(String foreignId, String resourceType,String type,String isPraise);

}